// date 24-2-2016 code for add class in mega menu written by waliullah /* ( function($) { $(document).ready(function(){ //alert('hello'); if($('.nav-menu li ul[class="sub-nav-group"] li ul[class="sub-nav-group"] li').find('li')){ alert('hello'); } }); } ) ( jQuery ); */ // code end jQuery(document).ready(function(){ //contrast if(getCookie('contrast') == 0 || getCookie('contrast') == null){ jQuery(".light").hide(); jQuery(".dark").show(); }else{ jQuery(".light").show(); jQuery(".dark").hide(); } jQuery(".common-right ul li ul").css("visibility", "hidden"); // Fix Header var num = 36; //number of pixels before modifying styles jQuery(window).bind('scroll', function () { if (jQuery(window).scrollTop() > num) { jQuery('.fixed-wrapper').addClass('sticky'); } else { jQuery('.fixed-wrapper').removeClass('sticky'); } }); //Skip Content jQuery('a[href^="#skipCont"]').click(function() { jQuery('html,body').animate({ scrollTop: jQuery(this.hash).offset().top}, 500); //return false; //e.preventDefault(); }); });